package com.quyunshuo.edwingoal.common.view

import android.content.Context
import android.util.AttributeSet
import android.view.Gravity
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.LinearLayout
import com.quyunshuo.edwingoal.common.databinding.ViewEmptyDataBinding

class EmptyDataView(
    context: Context?,
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0
) :
    LinearLayout(context, attrs, defStyleAttr) {
    private var mBinding: ViewEmptyDataBinding

    init {
        orientation = VERTICAL
        gravity = Gravity.CENTER
        layoutParams = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
        mBinding = ViewEmptyDataBinding.inflate(LayoutInflater.from(context), this, true)

    }

}